{% extends 'base.html' %}
{% block content %}
    {% load crispy_forms_filters %}
    <style>
        .table-password_change {
            position: fixed;
            max-width: 50%; /* 设置容器的最大宽度 */
            left: 35%;
            width: 30%;
            margin: 5% auto;
            padding: 15px; /* 添加一些内边距 */
            background-color: #f8f9fa; /* 设置背景颜色 */
            border: 1px solid rgba(221, 221, 221, 0.67); /* 添加边框 */
            border-radius: 5px; /* 添加圆角 */
        }</style>
    <div class="table-password_change">
        <form action="{% url 'user_manage:user_password_change' %}" method="post">
            <div class="card-body">
                <h>{{ form.user.username }}密码修改</h>
                <p class="card-text">
                    {% csrf_token %}
                    {{ form|crispy }}
                </p>
                <button class="btn btn- btn-primary" type="submit">确认</button>
                <a href="{% url 'device:home' %}" class="btn btn-primary">返回首页</a>
            </div>
        </form>
    </div>
{% endblock %}